<template>
    <div class="card-box common-box">
        <div class="card-box-head common-box">
            <slot name="card-head">
                <div class="card-box-head-title">默认卡片头部插槽</div>
                <div class="card-box-head-icon">
                    <!-- <i></i> -->
                    A
                </div>
            </slot>
        </div>
        <div class="card-box-body common-box">
            <slot name="card-body">默认卡片内容插槽</slot>
        </div>
    </div>
</template>
<script>
import { toRefs } from 'vue';
export default {
    setup(props, context) {},
};
</script>
<style lang="less">
.card-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 80px;
    &-head {
        height: 48px;
        display: flex;
        justify-content: space-between;
        &-title {
            align-self: center;
            justify-items: flex-start;
            font-size: 16px;
            padding: 8px;
        }
        &-icon {
            align-self: center;
            justify-items: flex-end;
            font-size: 16px;
            padding: 8px;
        }
    }
    &-body {
        margin-top: 4px;
        flex: 1;
    }
}
</style>
